package com.zj.base.base_act;

import com.zj.base.httpclien.HttpClient;
import com.zj.base.permission.interfaces.OnPermissionCheckListener;

import java.util.Map;

/**
 * Created by zhaojie on 2017/10/11.
 * <p>
 * Extends this activity base to use HttpClientResponse callback
 */

public abstract class BaseRequestActivity extends BaseActivity implements OnHttpDataReceiveIn {


    @Override
    public abstract void onHttpDataReceived(Object data, int reqCode, HttpClient.DataType type);

    @Override
    public void onHttpError(String msg, int errorCode, int reqCode, HttpClient.DataType type) {
    }

    @Override
    public void onHttpProgressChange(int reqCode, float progress) {
    }

    @Override
    public void onPermissionsCheck(Map<String, Boolean> permissions, OnPermissionCheckListener l) {
        cheekSelfPermission(permissions, l);
    }
}
